package com.wlc.base.design.strategymode.v2;

/**
 * @author 王立朝
 * @date 2022/3/16
 * @description:
 */
public class Test {

    public static void main(String[] args) {
        CashSuper csuper = CashFactory.createCashAccept("正常收费");
        double total = csuper.acceptCash(400.0);
        System.out.println("正常收费的价格为： = " + total);

        CashSuper csuper2 = CashFactory.createCashAccept("满300 返100");
        double total2 = csuper2.acceptCash(700.0);
        System.out.println("满300返100后的价格为： = " + total2);

        CashSuper cashAccept = CashFactory.createCashAccept("打八折");
        double total3 = cashAccept.acceptCash(400.0);
        System.out.println("打8折后的价格为： = " + total3);

    }
}
